<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org"
      xmlns:mo="https://gitee.com/aun/Timo">
<head th:replace="/common/template :: header(~{::title},~{::link},~{::style})">
</head>
<body class="timo-layout-page">
    <div class="layui-card">
        <div class="layui-card-header timo-card-header">
            <span><i class="fa fa-bars"></i> 中药材管理</span>
            <i class="layui-icon layui-icon-refresh refresh-btn"></i>
        </div>
        <div class="layui-card-body">
            <div class="layui-row timo-card-screen">
                <div class="pull-left layui-form-pane timo-search-box">
                    <div class="layui-inline">
                        <label class="layui-form-label">状态</label>
                        <div class="layui-input-block timo-search-status">
                            <select class="timo-search-select" name="status" mo:dict="SEARCH_STATUS" mo-selected="${param.status}"></select>
                        </div>
                    </div>
                    <div class="layui-inline">
                        <label class="layui-form-label">主键ID</label>
                        <div class="layui-input-block">
                            <input type="text" name="id" th:value="${param.id}" placeholder="请输入主键ID" autocomplete="off" class="layui-input">
                        </div>
                    </div>
                    <div class="layui-inline">
                        <label class="layui-form-label">来源ID</label>
                        <div class="layui-input-block">
                            <input type="text" name="originId" th:value="${param.originId}" placeholder="请输入来源ID" autocomplete="off" class="layui-input">
                        </div>
                    </div>
                    <div class="layui-inline">
                        <label class="layui-form-label">标题</label>
                        <div class="layui-input-block">
                            <input type="text" name="title" th:value="${param.title}" placeholder="请输入标题" autocomplete="off" class="layui-input">
                        </div>
                    </div>
                    <div class="layui-inline">
                        <label class="layui-form-label">简介</label>
                        <div class="layui-input-block">
                            <input type="text" name="intro" th:value="${param.intro}" placeholder="请输入简介" autocomplete="off" class="layui-input">
                        </div>
                    </div>
                    <div class="layui-inline">
                        <label class="layui-form-label">植物种属</label>
                        <div class="layui-input-block">
                            <input type="text" name="plantGenus" th:value="${param.plantGenus}" placeholder="请输入植物种属" autocomplete="off" class="layui-input">
                        </div>
                    </div>
                    <div class="layui-inline">
                        <label class="layui-form-label">形态特征</label>
                        <div class="layui-input-block">
                            <input type="text" name="plantFrature" th:value="${param.plantFrature}" placeholder="请输入形态特征" autocomplete="off" class="layui-input">
                        </div>
                    </div>
                    <div class="layui-inline">
                        <label class="layui-form-label">分布区域</label>
                        <div class="layui-input-block">
                            <input type="text" name="plantCropArea" th:value="${param.plantCropArea}" placeholder="请输入分布区域" autocomplete="off" class="layui-input">
                        </div>
                    </div>
                    <div class="layui-inline">
                        <label class="layui-form-label">道地产区</label>
                        <div class="layui-input-block">
                            <input type="text" name="plantRealEstate" th:value="${param.plantRealEstate}" placeholder="请输入道地产区" autocomplete="off" class="layui-input">
                        </div>
                    </div>
                    <div class="layui-inline">
                        <label class="layui-form-label">生长环境</label>
                        <div class="layui-input-block">
                            <input type="text" name="plantGrowthEnvironment" th:value="${param.plantGrowthEnvironment}" placeholder="请输入生长环境" autocomplete="off" class="layui-input">
                        </div>
                    </div>
                    <div class="layui-inline">
                        <label class="layui-form-label">生长见习</label>
                        <div class="layui-input-block">
                            <input type="text" name="plantGrowthHabits" th:value="${param.plantGrowthHabits}" placeholder="请输入生长见习" autocomplete="off" class="layui-input">
                        </div>
                    </div>
                    <div class="layui-inline">
                        <label class="layui-form-label">繁殖方式</label>
                        <div class="layui-input-block">
                            <input type="text" name="plantsireMethods" th:value="${param.plantsireMethods}" placeholder="请输入繁殖方式" autocomplete="off" class="layui-input">
                        </div>
                    </div>
                    <div class="layui-inline">
                        <label class="layui-form-label">栽培技术</label>
                        <div class="layui-input-block">
                            <input type="text" name="plantTrainTechniques" th:value="${param.plantTrainTechniques}" placeholder="请输入栽培技术" autocomplete="off" class="layui-input">
                        </div>
                    </div>
                    <div class="layui-inline">
                        <label class="layui-form-label">病虫防治</label>
                        <div class="layui-input-block">
                            <input type="text" name="plantPestControl" th:value="${param.plantPestControl}" placeholder="请输入病虫防治" autocomplete="off" class="layui-input">
                        </div>
                    </div>
                    <div class="layui-inline">
                        <label class="layui-form-label">主要变种</label>
                        <div class="layui-input-block">
                            <input type="text" name="plantMajorVariant" th:value="${param.plantMajorVariant}" placeholder="请输入主要变种" autocomplete="off" class="layui-input">
                        </div>
                    </div>
                    <div class="layui-inline">
                        <label class="layui-form-label">中文名称</label>
                        <div class="layui-input-block">
                            <input type="text" name="chineseName" th:value="${param.chineseName}" placeholder="请输入中文名称" autocomplete="off" class="layui-input">
                        </div>
                    </div>
                    <div class="layui-inline">
                        <label class="layui-form-label">中文拼音</label>
                        <div class="layui-input-block">
                            <input type="text" name="chinesePinyin" th:value="${param.chinesePinyin}" placeholder="请输入中文拼音" autocomplete="off" class="layui-input">
                        </div>
                    </div>
                    <div class="layui-inline">
                        <label class="layui-form-label">拉丁文名</label>
                        <div class="layui-input-block">
                            <input type="text" name="latinName" th:value="${param.latinName}" placeholder="请输入拉丁文名" autocomplete="off" class="layui-input">
                        </div>
                    </div>
                    <div class="layui-inline">
                        <label class="layui-form-label">别名</label>
                        <div class="layui-input-block">
                            <input type="text" name="alisaName" th:value="${param.alisaName}" placeholder="请输入别名" autocomplete="off" class="layui-input">
                        </div>
                    </div>
                    <div class="layui-inline">
                        <label class="layui-form-label">缩略图</label>
                        <div class="layui-input-block">
                            <input type="text" name="thumbnail" th:value="${param.thumbnail}" placeholder="请输入缩略图" autocomplete="off" class="layui-input">
                        </div>
                    </div>
                    <div class="layui-inline">
                        <label class="layui-form-label">贮藏方法</label>
                        <div class="layui-input-block">
                            <input type="text" name="storageMethod" th:value="${param.storageMethod}" placeholder="请输入贮藏方法" autocomplete="off" class="layui-input">
                        </div>
                    </div>
                    <div class="layui-inline">
                        <label class="layui-form-label">道地产区</label>
                        <div class="layui-input-block">
                            <input type="text" name="realEstate" th:value="${param.realEstate}" placeholder="请输入道地产区" autocomplete="off" class="layui-input">
                        </div>
                    </div>
                    <div class="layui-inline">
                        <label class="layui-form-label">用药部位</label>
                        <div class="layui-input-block">
                            <input type="text" name="drugSite" th:value="${param.drugSite}" placeholder="请输入用药部位" autocomplete="off" class="layui-input">
                        </div>
                    </div>
                    <div class="layui-inline">
                        <label class="layui-form-label">性味归经</label>
                        <div class="layui-input-block">
                            <input type="text" name="remark" th:value="${param.remark}" placeholder="请输入性味归经" autocomplete="off" class="layui-input">
                        </div>
                    </div>
                    <div class="layui-inline">
                        <label class="layui-form-label">药材分类</label>
                        <div class="layui-input-block">
                            <input type="text" name="msgType" th:value="${param.msgType}" placeholder="请输入药材分类" autocomplete="off" class="layui-input">
                        </div>
                    </div>
                    <div class="layui-inline">
                        <label class="layui-form-label">功能</label>
                        <div class="layui-input-block">
                            <input type="text" name="func" th:value="${param.func}" placeholder="请输入功能" autocomplete="off" class="layui-input">
                        </div>
                    </div>
                    <div class="layui-inline">
                        <label class="layui-form-label">主治</label>
                        <div class="layui-input-block">
                            <input type="text" name="mainAttend" th:value="${param.mainAttend}" placeholder="请输入主治" autocomplete="off" class="layui-input">
                        </div>
                    </div>
                    <div class="layui-inline">
                        <button class="layui-btn timo-search-btn">
                            <i class="fa fa-search"></i>
                        </button>
                    </div>
                </div>
                <div class="pull-right screen-btn-group">
                    <button class="layui-btn open-popup" data-title="添加中药材" th:attr="data-url=@{/cmedic//add}" data-size="auto">
                        <i class="fa fa-plus"></i> 添加</button>
                    <div class="btn-group">
                        <button class="layui-btn">操作<span class="caret"></span></button>
                        <dl class="layui-nav-child layui-anim layui-anim-upbit">
                            <dd><a class="ajax-status" th:href="@{/cmedic//status/ok}">启用</a></dd>
                            <dd><a class="ajax-status" th:href="@{/cmedic//status/freezed}">冻结</a></dd>
                            <dd><a class="ajax-status" th:href="@{/cmedic//status/delete}">删除</a></dd>
                        </dl>
                    </div>
                </div>
            </div>
            <div class="timo-table-wrap">
                <table class="layui-table timo-table">
                    <thead>
                    <tr>
                        <th class="timo-table-checkbox">
                            <label class="timo-checkbox"><input type="checkbox">
                                <i class="layui-icon layui-icon-ok"></i></label>
                        </th>
                        <th>主键ID</th>
                        <th>来源ID</th>
                        <th>标题</th>
                        <th>简介</th>
                        <th>植物种属</th>
                        <th>形态特征</th>
                        <th>分布区域</th>
                        <th>道地产区</th>
                        <th>生长环境</th>
                        <th>生长见习</th>
                        <th>繁殖方式</th>
                        <th>栽培技术</th>
                        <th>病虫防治</th>
                        <th>主要变种</th>
                        <th>中文名称</th>
                        <th>中文拼音</th>
                        <th>拉丁文名</th>
                        <th>别名</th>
                        <th>贮藏方法</th>
                        <th>道地产区</th>
                        <th>用药部位</th>
                        <th>性味归经</th>
                        <th>药材分类</th>
                        <th>功能</th>
                        <th>主治</th>
                        <th>创建时间</th>
                        <th>更新时间</th>
                        <th>数据状态</th>
                        <th>操作</th>
                    </tr>
                    </thead>
                    <tbody>
                    <tr th:each="item:${list}">
                        <td><label class="timo-checkbox"><input type="checkbox" th:value="${item.id}">
                            <i class="layui-icon layui-icon-ok"></i></label></td>
                        <td th:text="${item.id}">主键ID</td>
                        <td th:text="${item.originId}">来源ID</td>
                        <td th:text="${item.title}">标题</td>
                        <td th:text="${item.intro}">简介</td>
                        <td th:text="${item.plantGenus}">植物种属</td>
                        <td th:text="${item.plantFrature}">形态特征</td>
                        <td th:text="${item.plantCropArea}">分布区域</td>
                        <td th:text="${item.plantRealEstate}">道地产区</td>
                        <td th:text="${item.plantGrowthEnvironment}">生长环境</td>
                        <td th:text="${item.plantGrowthHabits}">生长见习</td>
                        <td th:text="${item.plantsireMethods}">繁殖方式</td>
                        <td th:text="${item.plantTrainTechniques}">栽培技术</td>
                        <td th:text="${item.plantPestControl}">病虫防治</td>
                        <td th:text="${item.plantMajorVariant}">主要变种</td>
                        <td th:text="${item.chineseName}">中文名称</td>
                        <td th:text="${item.chinesePinyin}">中文拼音</td>
                        <td th:text="${item.latinName}">拉丁文名</td>
                        <td th:text="${item.alisaName}">别名</td>
                        <td th:text="${item.storageMethod}">贮藏方法</td>
                        <td th:text="${item.realEstate}">道地产区</td>
                        <td th:text="${item.drugSite}">用药部位</td>
                        <td th:text="${item.remark}">性味归经</td>
                        <td th:text="${item.msgType}">药材分类</td>
                        <td th:text="${item.func}">功能</td>
                        <td th:text="${item.mainAttend}">主治</td>
                        <td th:text="${#dates.format(item.createDate, 'yyyy-MM-dd HH:mm:ss')}">创建时间</td>
                        <td th:text="${#dates.format(item.updateDate, 'yyyy-MM-dd HH:mm:ss')}">更新时间</td>
                        <td th:text="${#dicts.dataStatus(item.status)}">数据状态</td>
                        <td>
                            <a class="open-popup" data-title="编辑中药材" th:attr="data-url=@{'/cmedic//edit/'+${item.id}}" data-size="auto" href="#">编辑</a>
                            <a class="open-popup" data-title="详细信息" th:attr="data-url=@{'/cmedic//detail/'+${item.id}}" data-size="800,600" href="#">详细</a>
                            <a class="ajax-get" data-msg="您是否确认删除" th:href="@{/cmedic//status/delete(ids=${item.id})}">删除</a>
                        </td>
                    </tr>
                    </tbody>
                </table>
            </div>
            <div th:replace="/common/fragment :: page"></div>
        </div>
    </div>
<script th:replace="/common/template :: script"></script>
</body>
</html>